package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysNbaTeamMapper;
import com.ruoyi.system.domain.SysNbaTeam;
import com.ruoyi.system.service.ISysNbaTeamService;
import com.ruoyi.common.core.text.Convert;

/**
 * 球队Service业务层处理
 * 
 * @author yqg
 * @date 2022-12-24
 */
@Service
public class SysNbaTeamServiceImpl implements ISysNbaTeamService 
{
    @Autowired
    private SysNbaTeamMapper sysNbaTeamMapper;

    /**
     * 查询球队
     * 
     * @param teamId 球队主键
     * @return 球队
     */
    @Override
    public SysNbaTeam selectSysNbaTeamByTeamId(Integer teamId)
    {
        return sysNbaTeamMapper.selectSysNbaTeamByTeamId(teamId);
    }

    /**
     * 查询球队列表
     * 
     * @param sysNbaTeam 球队
     * @return 球队
     */
    @Override
    public List<SysNbaTeam> selectSysNbaTeamList(SysNbaTeam sysNbaTeam)
    {
        return sysNbaTeamMapper.selectSysNbaTeamList(sysNbaTeam);
    }

    /**
     * 新增球队
     * 
     * @param sysNbaTeam 球队
     * @return 结果
     */
    @Override
    public int insertSysNbaTeam(SysNbaTeam sysNbaTeam)
    {
        return sysNbaTeamMapper.insertSysNbaTeam(sysNbaTeam);
    }

    /**
     * 修改球队
     * 
     * @param sysNbaTeam 球队
     * @return 结果
     */
    @Override
    public int updateSysNbaTeam(SysNbaTeam sysNbaTeam)
    {
        return sysNbaTeamMapper.updateSysNbaTeam(sysNbaTeam);
    }

    /**
     * 批量删除球队
     * 
     * @param teamIds 需要删除的球队主键
     * @return 结果
     */
    @Override
    public int deleteSysNbaTeamByTeamIds(String teamIds)
    {
        return sysNbaTeamMapper.deleteSysNbaTeamByTeamIds(Convert.toStrArray(teamIds));
    }

    /**
     * 删除球队信息
     * 
     * @param teamId 球队主键
     * @return 结果
     */
    @Override
    public int deleteSysNbaTeamByTeamId(Integer teamId)
    {
        return sysNbaTeamMapper.deleteSysNbaTeamByTeamId(teamId);
    }
}
